package com.study;
import org.mortbay.jetty.Server;
import com.study.util.JettyUtils;
/**
 * @description Start
 * @author TDW
 * @date 2018年10月9日
 *
 */
public class Start {
	public static final int PORT = 8080;
	public static final String CONTEXT = "/";
	public static void main(String[] args) throws Exception {
        Server server = JettyUtils.buildTestServer(PORT, CONTEXT);
		server.start();
		if (System.in.read() != 0) {
			server.stop();
			System.out.println("Server stopped");
		}
	}
}
